package com.lanchetech.dao;

import org.apache.ibatis.annotations.Param;

import com.lanchetech.bean.request.ShopAnnouncementPageReq;
import com.lanchetech.bean.vo.ShopAnnouncementVO;
import com.lanchetech.entity.ShopAnnouncement;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShopAnnouncementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopAnnouncement record);

    int insertSelective(ShopAnnouncement record);

    ShopAnnouncement selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopAnnouncement record);

    int updateByPrimaryKey(ShopAnnouncement record);

    List<ShopAnnouncementVO> findAllPage(ShopAnnouncementPageReq req);

    int batchInsert(@Param("list") List<ShopAnnouncement> list);
}